package com.tencreat.common.core.domain.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * 入参分页
 * @author zixin
 */
public class BasePageEntityDTO {

    @ApiModelProperty("当前页数")
    private Integer current;

    @ApiModelProperty("每页显示条数")
    private Integer size;

    /**
     * 已废弃，但仍可使用
     * 尽量使用 current
     */
    @Deprecated
    @ApiModelProperty(value = "当前页数", hidden = true)
    private Integer pageNum;

    /**
     * 已废弃，但仍可使用
     * 尽量使用 size
     */
    @Deprecated
    @ApiModelProperty(value = "每页显示条数", hidden = true)
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "BasePageEntityDTO{" +
                "current=" + current +
                ", size=" + size +
                '}';
    }
}
